package Song.Han.day03.demo02;
/*
* 注意：
*  1.对象的成员方法在堆中存放的是类中的成员方法的地址值。
*  2.*/

public class Demo01PhoneOne {
    public static void main(String[] args) {
        Phone one = new Phone();
        System.out.println(one.brand);//null
        System.out.println(one.price);//0.0
        System.out.println(one.color);//null
        System.out.println("--------------------------");

        one.brand = "apple";
        one.price = 3999;
        one.color = "黑色";

        System.out.println(one.brand);//apple
        System.out.println(one.price);//3999
        System.out.println(one.color);//黑色
        System.out.println("--------------------------");

        one.call("Jobs");
        one.text("Jobs","Hello!");

    }
}
